package com.ygy.entity.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class UserOrderVO implements Serializable {

    //购买用户id
    private Integer userId;

    //用户名
    private String username;
    //出售用户Id
    private Integer sellId;

    //买家是否评价
    private String buyerEvaluated;
    //卖家是否评价
    private String sellerEvaluated;


    //订单id
    private Integer orderId;

    private Integer productId;

    //订单编号
    private  String orderNumber;

    private String productName;

    //商品图片
    private String picture;

    //订单价格
    private BigDecimal totalPrice;

    //订单地址
    private String address;

    //订单状态
    private String status;
    //创建订单时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;


}
